<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
if (sizeof($page) > 0) {
	echo "<div class='one-item'>";
	echo "<h2>" . $page['news_title'] . "</h2>";
	if ($page['news_image'] != "") {
		echo "<a href='/uploads/news/" . $page['news_id'] . "/" . $page['news_image'] . "'><img src='/uploads/news/" . $page['news_id'] . "/middle/" . $page['news_image'] . "' alt='" . $page['news_title'] . "' title='" . $page['news_title'] . "' class='ph fl' /></a>";
	}
	echo htmlspecialchars_decode($page['news_desc']);
	echo htmlspecialchars_decode($page['news_text']);
	if (sizeof($ph) > 0) {
		echo "<br class='cc' /><h2>Фотографии</h2>";
		$data['ph'] = $ph;
		$data['id'] = $page['news_pg'];
		$data['title'] = $page['news_title'];
		$this->load->view('modules/pg/list', $data);
	}
	echo "<small class='fl'>" . showmedate($page['news_date']) . "</small>";
	echo "<br class='cc'/>";
	echo "</div>";
} else {
	redirect('/');
}
?>